package com.wuba.baojie.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ApplyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApplyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNull() {
            addCriterion("open_id is null");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNotNull() {
            addCriterion("open_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpenIdEqualTo(String value) {
            addCriterion("open_id =", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotEqualTo(String value) {
            addCriterion("open_id <>", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThan(String value) {
            addCriterion("open_id >", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
            addCriterion("open_id >=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThan(String value) {
            addCriterion("open_id <", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThanOrEqualTo(String value) {
            addCriterion("open_id <=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLike(String value) {
            addCriterion("open_id like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotLike(String value) {
            addCriterion("open_id not like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIn(List<String> values) {
            addCriterion("open_id in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotIn(List<String> values) {
            addCriterion("open_id not in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdBetween(String value1, String value2) {
            addCriterion("open_id between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotBetween(String value1, String value2) {
            addCriterion("open_id not between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("address is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("address is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("address =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("address <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("address >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("address >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("address <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("address <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("address like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("address not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("address in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("address not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("address between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("address not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andWarterIsNull() {
            addCriterion("warter is null");
            return (Criteria) this;
        }

        public Criteria andWarterIsNotNull() {
            addCriterion("warter is not null");
            return (Criteria) this;
        }

        public Criteria andWarterEqualTo(Integer value) {
            addCriterion("warter =", value, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterNotEqualTo(Integer value) {
            addCriterion("warter <>", value, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterGreaterThan(Integer value) {
            addCriterion("warter >", value, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterGreaterThanOrEqualTo(Integer value) {
            addCriterion("warter >=", value, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterLessThan(Integer value) {
            addCriterion("warter <", value, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterLessThanOrEqualTo(Integer value) {
            addCriterion("warter <=", value, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterIn(List<Integer> values) {
            addCriterion("warter in", values, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterNotIn(List<Integer> values) {
            addCriterion("warter not in", values, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterBetween(Integer value1, Integer value2) {
            addCriterion("warter between", value1, value2, "warter");
            return (Criteria) this;
        }

        public Criteria andWarterNotBetween(Integer value1, Integer value2) {
            addCriterion("warter not between", value1, value2, "warter");
            return (Criteria) this;
        }

        public Criteria andShouzhiIsNull() {
            addCriterion("shouzhi is null");
            return (Criteria) this;
        }

        public Criteria andShouzhiIsNotNull() {
            addCriterion("shouzhi is not null");
            return (Criteria) this;
        }

        public Criteria andShouzhiEqualTo(Integer value) {
            addCriterion("shouzhi =", value, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiNotEqualTo(Integer value) {
            addCriterion("shouzhi <>", value, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiGreaterThan(Integer value) {
            addCriterion("shouzhi >", value, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiGreaterThanOrEqualTo(Integer value) {
            addCriterion("shouzhi >=", value, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiLessThan(Integer value) {
            addCriterion("shouzhi <", value, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiLessThanOrEqualTo(Integer value) {
            addCriterion("shouzhi <=", value, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiIn(List<Integer> values) {
            addCriterion("shouzhi in", values, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiNotIn(List<Integer> values) {
            addCriterion("shouzhi not in", values, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiBetween(Integer value1, Integer value2) {
            addCriterion("shouzhi between", value1, value2, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andShouzhiNotBetween(Integer value1, Integer value2) {
            addCriterion("shouzhi not between", value1, value2, "shouzhi");
            return (Criteria) this;
        }

        public Criteria andQingfengIsNull() {
            addCriterion("qingfeng is null");
            return (Criteria) this;
        }

        public Criteria andQingfengIsNotNull() {
            addCriterion("qingfeng is not null");
            return (Criteria) this;
        }

        public Criteria andQingfengEqualTo(Integer value) {
            addCriterion("qingfeng =", value, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengNotEqualTo(Integer value) {
            addCriterion("qingfeng <>", value, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengGreaterThan(Integer value) {
            addCriterion("qingfeng >", value, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengGreaterThanOrEqualTo(Integer value) {
            addCriterion("qingfeng >=", value, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengLessThan(Integer value) {
            addCriterion("qingfeng <", value, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengLessThanOrEqualTo(Integer value) {
            addCriterion("qingfeng <=", value, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengIn(List<Integer> values) {
            addCriterion("qingfeng in", values, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengNotIn(List<Integer> values) {
            addCriterion("qingfeng not in", values, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengBetween(Integer value1, Integer value2) {
            addCriterion("qingfeng between", value1, value2, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andQingfengNotBetween(Integer value1, Integer value2) {
            addCriterion("qingfeng not between", value1, value2, "qingfeng");
            return (Criteria) this;
        }

        public Criteria andNipiaoIsNull() {
            addCriterion("nipiao is null");
            return (Criteria) this;
        }

        public Criteria andNipiaoIsNotNull() {
            addCriterion("nipiao is not null");
            return (Criteria) this;
        }

        public Criteria andNipiaoEqualTo(Integer value) {
            addCriterion("nipiao =", value, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoNotEqualTo(Integer value) {
            addCriterion("nipiao <>", value, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoGreaterThan(Integer value) {
            addCriterion("nipiao >", value, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoGreaterThanOrEqualTo(Integer value) {
            addCriterion("nipiao >=", value, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoLessThan(Integer value) {
            addCriterion("nipiao <", value, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoLessThanOrEqualTo(Integer value) {
            addCriterion("nipiao <=", value, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoIn(List<Integer> values) {
            addCriterion("nipiao in", values, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoNotIn(List<Integer> values) {
            addCriterion("nipiao not in", values, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoBetween(Integer value1, Integer value2) {
            addCriterion("nipiao between", value1, value2, "nipiao");
            return (Criteria) this;
        }

        public Criteria andNipiaoNotBetween(Integer value1, Integer value2) {
            addCriterion("nipiao not between", value1, value2, "nipiao");
            return (Criteria) this;
        }

        public Criteria andSmallIsNull() {
            addCriterion("small is null");
            return (Criteria) this;
        }

        public Criteria andSmallIsNotNull() {
            addCriterion("small is not null");
            return (Criteria) this;
        }

        public Criteria andSmallEqualTo(Integer value) {
            addCriterion("small =", value, "small");
            return (Criteria) this;
        }

        public Criteria andSmallNotEqualTo(Integer value) {
            addCriterion("small <>", value, "small");
            return (Criteria) this;
        }

        public Criteria andSmallGreaterThan(Integer value) {
            addCriterion("small >", value, "small");
            return (Criteria) this;
        }

        public Criteria andSmallGreaterThanOrEqualTo(Integer value) {
            addCriterion("small >=", value, "small");
            return (Criteria) this;
        }

        public Criteria andSmallLessThan(Integer value) {
            addCriterion("small <", value, "small");
            return (Criteria) this;
        }

        public Criteria andSmallLessThanOrEqualTo(Integer value) {
            addCriterion("small <=", value, "small");
            return (Criteria) this;
        }

        public Criteria andSmallIn(List<Integer> values) {
            addCriterion("small in", values, "small");
            return (Criteria) this;
        }

        public Criteria andSmallNotIn(List<Integer> values) {
            addCriterion("small not in", values, "small");
            return (Criteria) this;
        }

        public Criteria andSmallBetween(Integer value1, Integer value2) {
            addCriterion("small between", value1, value2, "small");
            return (Criteria) this;
        }

        public Criteria andSmallNotBetween(Integer value1, Integer value2) {
            addCriterion("small not between", value1, value2, "small");
            return (Criteria) this;
        }

        public Criteria andMediumIsNull() {
            addCriterion("medium is null");
            return (Criteria) this;
        }

        public Criteria andMediumIsNotNull() {
            addCriterion("medium is not null");
            return (Criteria) this;
        }

        public Criteria andMediumEqualTo(Integer value) {
            addCriterion("medium =", value, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumNotEqualTo(Integer value) {
            addCriterion("medium <>", value, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumGreaterThan(Integer value) {
            addCriterion("medium >", value, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumGreaterThanOrEqualTo(Integer value) {
            addCriterion("medium >=", value, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumLessThan(Integer value) {
            addCriterion("medium <", value, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumLessThanOrEqualTo(Integer value) {
            addCriterion("medium <=", value, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumIn(List<Integer> values) {
            addCriterion("medium in", values, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumNotIn(List<Integer> values) {
            addCriterion("medium not in", values, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumBetween(Integer value1, Integer value2) {
            addCriterion("medium between", value1, value2, "medium");
            return (Criteria) this;
        }

        public Criteria andMediumNotBetween(Integer value1, Integer value2) {
            addCriterion("medium not between", value1, value2, "medium");
            return (Criteria) this;
        }

        public Criteria andBigIsNull() {
            addCriterion("big is null");
            return (Criteria) this;
        }

        public Criteria andBigIsNotNull() {
            addCriterion("big is not null");
            return (Criteria) this;
        }

        public Criteria andBigEqualTo(Integer value) {
            addCriterion("big =", value, "big");
            return (Criteria) this;
        }

        public Criteria andBigNotEqualTo(Integer value) {
            addCriterion("big <>", value, "big");
            return (Criteria) this;
        }

        public Criteria andBigGreaterThan(Integer value) {
            addCriterion("big >", value, "big");
            return (Criteria) this;
        }

        public Criteria andBigGreaterThanOrEqualTo(Integer value) {
            addCriterion("big >=", value, "big");
            return (Criteria) this;
        }

        public Criteria andBigLessThan(Integer value) {
            addCriterion("big <", value, "big");
            return (Criteria) this;
        }

        public Criteria andBigLessThanOrEqualTo(Integer value) {
            addCriterion("big <=", value, "big");
            return (Criteria) this;
        }

        public Criteria andBigIn(List<Integer> values) {
            addCriterion("big in", values, "big");
            return (Criteria) this;
        }

        public Criteria andBigNotIn(List<Integer> values) {
            addCriterion("big not in", values, "big");
            return (Criteria) this;
        }

        public Criteria andBigBetween(Integer value1, Integer value2) {
            addCriterion("big between", value1, value2, "big");
            return (Criteria) this;
        }

        public Criteria andBigNotBetween(Integer value1, Integer value2) {
            addCriterion("big not between", value1, value2, "big");
            return (Criteria) this;
        }

        public Criteria andCupIsNull() {
            addCriterion("cup is null");
            return (Criteria) this;
        }

        public Criteria andCupIsNotNull() {
            addCriterion("cup is not null");
            return (Criteria) this;
        }

        public Criteria andCupEqualTo(Integer value) {
            addCriterion("cup =", value, "cup");
            return (Criteria) this;
        }

        public Criteria andCupNotEqualTo(Integer value) {
            addCriterion("cup <>", value, "cup");
            return (Criteria) this;
        }

        public Criteria andCupGreaterThan(Integer value) {
            addCriterion("cup >", value, "cup");
            return (Criteria) this;
        }

        public Criteria andCupGreaterThanOrEqualTo(Integer value) {
            addCriterion("cup >=", value, "cup");
            return (Criteria) this;
        }

        public Criteria andCupLessThan(Integer value) {
            addCriterion("cup <", value, "cup");
            return (Criteria) this;
        }

        public Criteria andCupLessThanOrEqualTo(Integer value) {
            addCriterion("cup <=", value, "cup");
            return (Criteria) this;
        }

        public Criteria andCupIn(List<Integer> values) {
            addCriterion("cup in", values, "cup");
            return (Criteria) this;
        }

        public Criteria andCupNotIn(List<Integer> values) {
            addCriterion("cup not in", values, "cup");
            return (Criteria) this;
        }

        public Criteria andCupBetween(Integer value1, Integer value2) {
            addCriterion("cup between", value1, value2, "cup");
            return (Criteria) this;
        }

        public Criteria andCupNotBetween(Integer value1, Integer value2) {
            addCriterion("cup not between", value1, value2, "cup");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}